package com.bw.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bw.dao.TestMapper;
import com.bw.entity.Test;
import com.bw.service.TestService;

@Service(value = "testService")
public class TestServiceImpl implements TestService {

    @Autowired
    private TestMapper<Test>testMapper;
    
    @Override
    public Integer insertSelective(Test test) throws Exception {
           return this.testMapper.insertSelective(test);
        }

    @Override
    public Integer insertBatch(List<Test> test) throws Exception {
           return this.testMapper.insertBatch(test) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.testMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.testMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(Test test) {
           return this.testMapper.updateByPrimaryKeySelective(test);
    }

    @Override
    public Test findById(Object id) {
           return (Test) this.testMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Test> selectByCondition(Test test) {
           return (List<Test>) this.testMapper.selectByCondition(test);
    }

    @Override
    public Integer selectCountByCondition(Test test) {
           return  this.testMapper.selectCountByCondition(test);
    }

}
